/**
 * Created by Administrator on 2014/12/26.
 */

function Square(t){
    this.type={"@":"player","#":"wall"," ":"empty","*":"exit","0":"boulder"}[t];
    this.img=dom("IMG",{src:"img/sokoban/"+this.type+".png"});
}

Square.prototype.changetype=function(t){
    this.type={"@":"player","#":"wall"," ":"empty","*":"exit","0":"boulder"}[t];
    this.img.src="img/sokoban/"+this.type+".png";
}





